package com.subject.shuati.domain.handler.subject;


import com.subject.shuati.common.enums.SubjectInfoTypeEnum;
import com.subject.shuati.domain.entity.SubjectInfoBo;
import com.subject.shuati.domain.entity.SubjectOptionBo;

public interface SubjectTypeHandler {

    /**
     * 题目类型枚举的识别
     * @return
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际的题目插入
     * @param subjectInfoBo
     */
    void add(SubjectInfoBo subjectInfoBo);

    /**
     * 实际的题目插入
     * @param subjectId
     */
    SubjectOptionBo query(int subjectId);
}
